package com.yc.music.receiver;

import ohos.event.commonevent.CommonEventData;
import ohos.event.commonevent.CommonEventSubscribeInfo;
import ohos.event.commonevent.CommonEventSubscriber;

import com.yc.music.utils.MusicLogUtils;

/**
 * 耳机线控，仅在5.0以下有效，5.0以上被{@link ohos.media.sessioncore.AVSession}接管。
 *
 * @since 2021-05-10
 */
public class EarphoneControlReceiver extends CommonEventSubscriber {
    /**
     * 构造函数
     *
     * @param subscribeInfo subscribeInfo
     */
    public EarphoneControlReceiver(CommonEventSubscribeInfo subscribeInfo) {
        super(subscribeInfo);
    }

    @Override
    public void onReceiveEvent(CommonEventData commonEventData) {
        MusicLogUtils.i("耳机线控====EarphoneControlReceiver");
    }
}
